{% load static %}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <title>焦化设备管理系统登录</title>
    <link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/css/bootstrap.min.css' %}">
    <style>
        .loginForm {
            /*边框宽度*/
            width: 400px;
            /*边框颜色*/
            border: #dddddd solid 1px;
            border-radius: 5px;
            box-shadow: 5px 5px 20px #aaa;

            /*上边界距离*/
            margin-top: 120px;
            /*左边界距离：自动*/
            margin-left: auto;
            /*右边界距离：自动*/
            margin-right: auto;
            padding: 20px 40px;
        }

        .loginForm h2 {
            margin-top: 10px;
            text-align: center;
        }

        .body {
            background-image: url("{% static 'img/bj4.jpg' %}");
            background-position: center 0;
            background-repeat: no-repeat;
            background-attachment: fixed;
            background-size: cover;
            -webkit-background-size: cover;
            -o-background-size: cover;
            -moz-background-size: cover;
            -ms-background-size: cover;
        }
    </style>
</head>
<body class="body">
<div class="loginForm">
    <img style="margin-bottom:30px;position: relative;" src="{% static 'img/bwlogo-sbwxf.png' %}">
    <form method="post">
        {% csrf_token %}
        <div class="form-group">
            <label>工号：</label>
            {{ form.employeeid }}
            <span style="color: red;">{{ form.employeeid.errors.0 }}</span>
        </div>
        <div class="form-group">
            <label>密码：</label>
            {{ form.password }}
            <span style="color: red;">{{ form.password.errors.0 }}</span>
        </div>
        <input style="text-align: right" type="submit" value="登录" class="bt btn-primary">
    </form>
</div>
</body>
</html>